package com.mxw.account.feign;

import com.mxw.account.dto.AccountDTO;
import com.mxw.commons.restful.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description TODO
 * @Author RingKo
 * @Date 2021/8/24 10:04
 * @Version 1.0
 */
@FeignClient(name = "account-service", contextId = "service2")
@RequestMapping(value = "/account")
public interface AccountFeign2 {
  @PostMapping("/testFeign")
  Result<String> testFeign(@RequestBody AccountDTO accountDTO);
}